package com.shortlink.pojos.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class LinkCreateReqDTO {

    @ApiModelProperty("分组标识")
    private String gid;

    @NotNull
    @ApiModelProperty("原始链接")
    private String originUrl;

    private String description;

    private String favicon;

    @NotNull
    @ApiModelProperty("0永久有效1自定义")
    private String validDateType;

    @ApiModelProperty("有效期")
    private Date validDate;
}
